<!--
 * @Description: 
 * @Author: zzj
 * @Date: 2021-10-11 11:21:15
 * @LastEditors: zzj
 * @LastEditTime: 2021-10-11 16:35:18
-->
<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<title>element</title>
	<script src="https://cdn.bootcdn.net/ajax/libs/vue/2.6.9/vue.js"></script>
	<link href="https://cdn.bootcdn.net/ajax/libs/element-ui/2.15.3/theme-chalk/index.css" rel="stylesheet">
	<script src="https://cdn.bootcdn.net/ajax/libs/element-ui/2.15.3/index.js"></script>
</head>
<body>
	<div id="app">
		<!-- stripe是否为斑马色 -->
		<el-table 
			stripe
			:data="articles"
			size="mini">
		 <!-- prop属性  label表头 -->
			<el-table-column prop="title" label="标题"></el-table-column>
			<el-table-column prop="content" label="内容"></el-table-column>
		</el-table>
	</div>

	<script>
		new Vue({
			el:"#app",
			data:{
				articles: [
					{ id: 1, title: "xxx", content: "xxxxxx" },
					{ id: 2, title: "ccc", content: "cccccc" },
					{ id: 3, title: "vvv", content: "vvvvv" }
				]
			}
		})
	</script>
</body>
</html>